Skip to content

feat: add PlatformEventMigration to registry#1789

Open
aalhadxx wants to merge 1 commit into
forcedotcom:mainfrom
aalhadxx:feat/add-platformeventmigration
Open

feat: add PlatformEventMigration to registry#1789
aalhadxx wants to merge 1 commit into
forcedotcom:mainfrom
aalhadxx:feat/add-platformeventmigration

Conversation

@aalhadxx

Copy link
Copy Markdown

What does this PR do?

Adds PlatformEventMigration to the metadata registry.

What issues does this PR fix or reference?

Closes a gap in METADATA_SUPPORT.md.

Registry values

Values were verified from a live org describe (sf org list metadata-types):

  • directoryName: platformEventMigrations
  • suffix: platformEventMigration
  • xmlName: PlatformEventMigration
  • inFolder: false

Validation

  • yarn mocha test/registry/registryValidation.test.ts29,124 passing
  • CLI successfully resolves the type (previously threw RegistryError: Missing metadata type definition in registry)

Is there anything else we should know?

Live org testing showed the type is recognized by the CLI after registry addition. The org returned "Entity type not available in this API version" — confirming the registry entry is structurally correct and the limitation is at the org/API level, not the registry.

Adds PlatformEventMigration metadata type to the registry with values verified from a live Salesforce org describe.

Verified via `sf org list metadata-types` from a connected org:
- directoryName: platformEventMigrations
- suffix: platformEventMigration
- xmlName: PlatformEventMigration
- inFolder: false

Registry validation: 29,124 passing
Manual testing: CLI successfully resolves the type (previously threw RegistryError)
@aalhadxx

Copy link
Copy Markdown
Author

Validation Proof

Local tests:

$ yarn mocha test/registry/registryValidation.test.ts
29124 passing (838ms)
0 failing

Org-Verified Values

Registry values were verified from a live org describe (sf org list metadata-types):

{
  "directoryName": "platformEventMigrations",
  "inFolder": false,
  "metaFile": false,
  "suffix": "platformEventMigration",
  "xmlName": "PlatformEventMigration"
}

CLI behavior before this change:

RegistryError: Missing metadata type definition in registry for id 'PlatformEventMigration'

CLI behavior after this change:
Type is successfully resolved and requests are sent to the org.

Happy to address any feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant